﻿@using Competition.Domain.ValueObjects
@using Competition.Infrastructure
@model Competition.App.Web.Models.ProductViewModels.ProductViewModel
@{
    Layout = null;
    ViewData["Title"] = "Create";
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="~/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="~/css/index.css">
    <!--<link href="img/logo.ico" type="image/x-icon" rel="shortcut icon">-->
    <link rel="stylesheet" href="~/css/animate.css">
</head>
<body style="height: 100%;width: 100%;">
    <!--title-->
    <div class="title container" id="title">
        <h2>桐庐青年返乡创业大赛暨大学生创业大赛</h2>
    </div>

    <!--导航-->
    <div class="tabBar" id="tabBar">
        <ul>
            <li><a href="@Url.Action("Index","Home")">大赛公告</a></li>
            <li><a href="@Url.Action("Index","Business")">桐庐创业</a></li>
            <li><a href="@Url.Action("Index","News")">媒体报道</a></li>
            <li><a href="@Url.Action("Index","History")">往届回顾</a></li>
            <li><a href="@Url.Action("Index","Product")">项目展示</a></li>
            <li><a href="@Url.Action("Create","Product")">报名通道</a></li>
        </ul>
    </div>

    <!--位置索引-->
    <div class="container position">
        您现在的位置： <a href="@Url.Action("Index","Home")" style="color: #ccc">首页</a> >>  报名参赛
    </div>

    <!--content-->
    <div class="container upload_content">
        <form class="form-horizontal" method="post" asp-action="Create" asp-controller="Product" enctype="multipart/form-data">
            <div class="form-group">
                <label asp-for="ClassId" class="col-sm-2 control-label" style="text-align: right"></label>
                <div class="col-sm-5 col-sm-offset-1">
                    <select class="form-control" asp-for="ClassId" asp-items="@(new SelectList(SysHelper.GetEnumDictionary(typeof(ProductClassEnum)),"Key","Value"))"></select>
                    <span asp-validation-for="ClassId"></span>
                </div>
            </div>
            <div class="form-group">
                <label asp-for="Title" class="col-sm-2 control-label" style="text-align: right"></label>
                <div class="col-sm-5 col-sm-offset-1">
                    <input asp-for="Title" type="text" class="form-control" placeholder="请输入作品名">
                    <span asp-validation-for="Title"></span>
                </div>
            </div>
            <div class="form-group">
                <label asp-for="FullName" class="col-sm-2 control-label" style="text-align: right"></label>
                <div class="col-sm-5 col-sm-offset-1">
                    <input asp-for="FullName" type="text" class="form-control" placeholder="请输入姓名">
                    <span asp-validation-for="FullName"></span>
                </div>
            </div>
            <div class="form-group">
                <label asp-for="Identity" class="col-sm-2 control-label" style="text-align: right"></label>
                <div class="col-sm-5 col-sm-offset-1">
                    <input type="text" class="form-control" asp-for="Identity" placeholder="请输入身份证号">
                    <span asp-validation-for="Identity"></span>
                </div>
            </div>
            <div class="form-group">
                <label asp-for="Phone" class="col-sm-2 control-label" style="text-align: right"></label>
                <div class="col-sm-5 col-sm-offset-1">
                    <input type="number" class="form-control" asp-for="Phone" placeholder="请输入手机号">
                    <span asp-validation-for="Phone"></span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" style="text-align: right">申请资料上传</label>
                <div class="col-sm-5 col-sm-offset-1">
                    <input type="file" name="file" accept=".rar">
                    (备注：文件名：创意或创业组(姓名+项目名称)，rar格式上传)
                    <span asp-validation-for="Annex"></span>
                </div>
            </div>
            <div class="downloadBtn">
                <div class="col-sm-6">
                    <a class="btn1" href="~/files/创意组申报资料（姓名+项目简称）.rar" target="_blank">创意组报名资料下载</a>
                </div>
                <div class="col-sm-6">
                    <a class="btn2" href="~/files/创业组申报资料（姓名+项目简称）.rar" target="_blank">创业组报名资料下载</a>
                </div>
            </div>
            <div class="uploadBtn">
                <div class="col-sm-12"  style="padding-left:15%">
                    <input type="submit" class="" value="提交" />
                </div>
            </div>
            <div class="downloadBtn" style="line-height: 85px;">
                <div class="col-sm-11">
                    <span>作品提交后请电话确认：0571-58508561/69910882</span>
                </div>
            </div>
        </form>
       
    </div>

    <!--footer-->
    <div id="footer" class="footer" style="position: fixed;bottom: 0;">
        <div>中共桐庐县委人才工作领导小组办公室 </div>
        <div>桐庐县人力资源和社会保障局</div>
    </div>

    <script src="https://cdn.bootcss.com/jquery/3.3.0/jquery.min.js"></script>
    <script src="~/js/jquery.pagination.js"></script>
    <script src="~/js/bootstrap.min.js"></script>
    <script src="~/js/index.js"></script>
    <script src="http://ossweb-img.qq.com/images/js/zepto/zepto-1.1.6.min.js"></script>
    @*<script src="https://unpkg.com/wangeditor@3.1.1/release/wangEditor.min.js"></script>
    <script>
        var E = window.wangEditor;
        var editor = new E('#editor');
        // 或者 var editor = new E( document.getElementById('editor') )
        // 配置服务器端地址
        editor.customConfig.uploadImgServer = '@Url.Action("UploadImage","Upload")';
        editor.create();
        editor.txt.html($("#Html").val());
        $('div').on("click",'input[type=submit]',function(){
            $("#Html").val(editor.txt.html());
            $("#Text").val(editor.txt.text());
        });
    </script>*@
</body>

</html>


